.class Lcom/hyphenate/chat/EMCallManager$CallStateUnion;
.super Ljava/lang/Object;


# instance fields
.field BIT0:S

.field BIT1:S

.field BIT2:S

.field BIT3:S

.field BIT4:S

.field BIT5:S

.field BIT6:S

.field BIT7:S

.field callState:Ljava/util/BitSet;


# direct methods
.method constructor <init>()V
    .locals 1

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    const/4 v0, 0x1

    iput-short v0, p0, Lcom/hyphenate/chat/EMCallManager$CallStateUnion;->BIT0:S

    const/4 v0, 0x2

    iput-short v0, p0, Lcom/hyphenate/chat/EMCallManager$CallStateUnion;->BIT1:S

    const/4 v0, 0x4

    iput-short v0, p0, Lcom/hyphenate/chat/EMCallManager$CallStateUnion;->BIT2:S

    const/16 v0, 0x8

    iput-short v0, p0, Lcom/hyphenate/chat/EMCallManager$CallStateUnion;->BIT3:S

    const/16 v0, 0x10

    iput-short v0, p0, Lcom/hyphenate/chat/EMCallManager$CallStateUnion;->BIT4:S

    const/16 v0, 0x20

    iput-short v0, p0, Lcom/hyphenate/chat/EMCallManager$CallStateUnion;->BIT5:S

    const/16 v0, 0x40

    iput-short v0, p0, Lcom/hyphenate/chat/EMCallManager$CallStateUnion;->BIT6:S

    const/16 v0, 0x80

    iput-short v0, p0, Lcom/hyphenate/chat/EMCallManager$CallStateUnion;->BIT7:S

    new-instance v0, Ljava/util/BitSet;

    invoke-direct {v0}, Ljava/util/BitSet;-><init>()V

    iput-object v0, p0, Lcom/hyphenate/chat/EMCallManager$CallStateUnion;->callState:Ljava/util/BitSet;

    return-void
.end method


# virtual methods
.method changeState(Lcom/hyphenate/chat/EMCallStateChangeListener$CallState;)V
    .locals 7

    const/4 v6, 0x1

    const/4 v5, 0x7

    const/4 v4, 0x6

    const/4 v3, 0x3

    const/4 v2, 0x0

    sget-object v0, Lcom/hyphenate/chat/EMCallManager$6;->$SwitchMap$com$hyphenate$chat$EMCallStateChangeListener$CallState:[I

    invoke-virtual {p1}, Lcom/hyphenate/chat/EMCallStateChangeListener$CallState;->ordinal()I

    move-result v1

    aget v0, v0, v1

    packed-switch v0, :pswitch_data_0

    :cond_0
    :goto_0
    return-void

    :pswitch_0
    iget-object v0, p0, Lcom/hyphenate/chat/EMCallManager$CallStateUnion;->callState:Ljava/util/BitSet;

    invoke-virtual {v0, v2, v3}, Ljava/util/BitSet;->clear(II)V

    invoke-virtual {p1}, Lcom/hyphenate/chat/EMCallStateChangeListener$CallState;->ordinal()I

    move-result v0

    iget-short v1, p0, Lcom/hyphenate/chat/EMCallManager$CallStateUnion;->BIT0:S

    and-int/2addr v1, v0

    if-lez v1, :cond_1

    iget-object v1, p0, Lcom/hyphenate/chat/EMCallManager$CallStateUnion;->callState:Ljava/util/BitSet;

    invoke-virtual {v1, v2}, Ljava/util/BitSet;->set(I)V

    :goto_1
    iget-short v1, p0, Lcom/hyphenate/chat/EMCallManager$CallStateUnion;->BIT1:S

    and-int/2addr v1, v0

    if-lez v1, :cond_2

    iget-object v1, p0, Lcom/hyphenate/chat/EMCallManager$CallStateUnion;->callState:Ljava/util/BitSet;

    invoke-virtual {v1, v6}, Ljava/util/BitSet;->set(I)V

    :goto_2
    iget-short v1, p0, Lcom/hyphenate/chat/EMCallManager$CallStateUnion;->BIT2:S

    and-int/2addr v1, v0

    if-lez v1, :cond_3

    iget-object v1, p0, Lcom/hyphenate/chat/EMCallManager$CallStateUnion;->callState:Ljava/util/BitSet;

    const/4 v2, 0x2

    invoke-virtual {v1, v2}, Ljava/util/BitSet;->set(I)V

    :goto_3
    iget-short v1, p0, Lcom/hyphenate/chat/EMCallManager$CallStateUnion;->BIT3:S

    and-int/2addr v0, v1

    if-lez v0, :cond_4

    iget-object v0, p0, Lcom/hyphenate/chat/EMCallManager$CallStateUnion;->callState:Ljava/util/BitSet;

    invoke-virtual {v0, v3}, Ljava/util/BitSet;->set(I)V

    :goto_4
    sget-object v0, Lcom/hyphenate/chat/EMCallStateChangeListener$CallState;->DISCONNECTED:Lcom/hyphenate/chat/EMCallStateChangeListener$CallState;

    if-ne p1, v0, :cond_0

    invoke-virtual {p0}, Lcom/hyphenate/chat/EMCallManager$CallStateUnion;->reset()V

    goto :goto_0

    :cond_1
    iget-object v1, p0, Lcom/hyphenate/chat/EMCallManager$CallStateUnion;->callState:Ljava/util/BitSet;

    invoke-virtual {v1, v2}, Ljava/util/BitSet;->clear(I)V

    goto :goto_1

    :cond_2
    iget-object v1, p0, Lcom/hyphenate/chat/EMCallManager$CallStateUnion;->callState:Ljava/util/BitSet;

    invoke-virtual {v1, v6}, Ljava/util/BitSet;->clear(I)V

    goto :goto_2

    :cond_3
    iget-object v1, p0, Lcom/hyphenate/chat/EMCallManager$CallStateUnion;->callState:Ljava/util/BitSet;

    const/4 v2, 0x2

    invoke-virtual {v1, v2}, Ljava/util/BitSet;->clear(I)V

    goto :goto_3

    :cond_4
    iget-object v0, p0, Lcom/hyphenate/chat/EMCallManager$CallStateUnion;->callState:Ljava/util/BitSet;

    invoke-virtual {v0, v3}, Ljava/util/BitSet;->clear(I)V

    goto :goto_4

    :pswitch_1
    iget-object v0, p0, Lcom/hyphenate/chat/EMCallManager$CallStateUnion;->callState:Ljava/util/BitSet;

    const/4 v1, 0x4

    invoke-virtual {v0, v1}, Ljava/util/BitSet;->set(I)V

    goto :goto_0

    :pswitch_2
    iget-object v0, p0, Lcom/hyphenate/chat/EMCallManager$CallStateUnion;->callState:Ljava/util/BitSet;

    const/4 v1, 0x4

    invoke-virtual {v0, v1}, Ljava/util/BitSet;->clear(I)V

    goto :goto_0

    :pswitch_3
    iget-object v0, p0, Lcom/hyphenate/chat/EMCallManager$CallStateUnion;->callState:Ljava/util/BitSet;

    const/4 v1, 0x5

    invoke-virtual {v0, v1}, Ljava/util/BitSet;->set(I)V

    goto :goto_0

    :pswitch_4
    iget-object v0, p0, Lcom/hyphenate/chat/EMCallManager$CallStateUnion;->callState:Ljava/util/BitSet;

    const/4 v1, 0x5

    invoke-virtual {v0, v1}, Ljava/util/BitSet;->clear(I)V

    goto :goto_0

    :pswitch_5
    iget-object v0, p0, Lcom/hyphenate/chat/EMCallManager$CallStateUnion;->callState:Ljava/util/BitSet;

    invoke-virtual {v0, v4, v5}, Ljava/util/BitSet;->clear(II)V

    goto :goto_0

    :pswitch_6
    iget-object v0, p0, Lcom/hyphenate/chat/EMCallManager$CallStateUnion;->callState:Ljava/util/BitSet;

    invoke-virtual {v0, v4}, Ljava/util/BitSet;->set(I)V

    iget-object v0, p0, Lcom/hyphenate/chat/EMCallManager$CallStateUnion;->callState:Ljava/util/BitSet;

    invoke-virtual {v0, v5}, Ljava/util/BitSet;->clear(I)V

    goto :goto_0

    :pswitch_7
    iget-object v0, p0, Lcom/hyphenate/chat/EMCallManager$CallStateUnion;->callState:Ljava/util/BitSet;

    invoke-virtual {v0, v4}, Ljava/util/BitSet;->clear(I)V

    iget-object v0, p0, Lcom/hyphenate/chat/EMCallManager$CallStateUnion;->callState:Ljava/util/BitSet;

    invoke-virtual {v0, v5}, Ljava/util/BitSet;->set(I)V

    goto/16 :goto_0

    nop

    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_0
        :pswitch_0
        :pswitch_0
        :pswitch_0
        :pswitch_0
        :pswitch_0
        :pswitch_0
        :pswitch_1
        :pswitch_2
        :pswitch_3
        :pswitch_4
        :pswitch_5
        :pswitch_6
        :pswitch_7
    .end packed-switch
.end method

.method getState()Lcom/hyphenate/chat/EMCallStateChangeListener$CallState;
    .locals 3

    const/4 v0, 0x0

    iget-object v1, p0, Lcom/hyphenate/chat/EMCallManager$CallStateUnion;->callState:Ljava/util/BitSet;

    invoke-virtual {v1, v0}, Ljava/util/BitSet;->get(I)Z

    move-result v1

    if-eqz v1, :cond_0

    iget-short v1, p0, Lcom/hyphenate/chat/EMCallManager$CallStateUnion;->BIT0:S

    or-int/2addr v0, v1

    :cond_0
    iget-object v1, p0, Lcom/hyphenate/chat/EMCallManager$CallStateUnion;->callState:Ljava/util/BitSet;

    const/4 v2, 0x1

    invoke-virtual {v1, v2}, Ljava/util/BitSet;->get(I)Z

    move-result v1

    if-eqz v1, :cond_1

    iget-short v1, p0, Lcom/hyphenate/chat/EMCallManager$CallStateUnion;->BIT1:S

    or-int/2addr v0, v1

    :cond_1
    iget-object v1, p0, Lcom/hyphenate/chat/EMCallManager$CallStateUnion;->callState:Ljava/util/BitSet;

    const/4 v2, 0x2

    invoke-virtual {v1, v2}, Ljava/util/BitSet;->get(I)Z

    move-result v1

    if-eqz v1, :cond_2

    iget-short v1, p0, Lcom/hyphenate/chat/EMCallManager$CallStateUnion;->BIT2:S

    or-int/2addr v0, v1

    :cond_2
    iget-object v1, p0, Lcom/hyphenate/chat/EMCallManager$CallStateUnion;->callState:Ljava/util/BitSet;

    const/4 v2, 0x3

    invoke-virtual {v1, v2}, Ljava/util/BitSet;->get(I)Z

    move-result v1

    if-eqz v1, :cond_3

    iget-short v1, p0, Lcom/hyphenate/chat/EMCallManager$CallStateUnion;->BIT3:S

    or-int/2addr v0, v1

    :cond_3
    invoke-static {}, Lcom/hyphenate/chat/EMCallStateChangeListener$CallState;->values()[Lcom/hyphenate/chat/EMCallStateChangeListener$CallState;

    move-result-object v1

    aget-object v0, v1, v0

    return-object v0
.end method

.method isAccepted()Z
    .locals 4

    const/4 v1, 0x0

    const/4 v0, 0x1

    iget-object v2, p0, Lcom/hyphenate/chat/EMCallManager$CallStateUnion;->callState:Ljava/util/BitSet;

    invoke-virtual {v2, v1}, Ljava/util/BitSet;->get(I)Z

    move-result v2

    if-ne v2, v0, :cond_0

    iget-object v2, p0, Lcom/hyphenate/chat/EMCallManager$CallStateUnion;->callState:Ljava/util/BitSet;

    invoke-virtual {v2, v0}, Ljava/util/BitSet;->get(I)Z

    move-result v2

    if-nez v2, :cond_0

    iget-object v2, p0, Lcom/hyphenate/chat/EMCallManager$CallStateUnion;->callState:Ljava/util/BitSet;

    const/4 v3, 0x2

    invoke-virtual {v2, v3}, Ljava/util/BitSet;->get(I)Z

    move-result v2

    if-ne v2, v0, :cond_0

    iget-object v2, p0, Lcom/hyphenate/chat/EMCallManager$CallStateUnion;->callState:Ljava/util/BitSet;

    const/4 v3, 0x3

    invoke-virtual {v2, v3}, Ljava/util/BitSet;->get(I)Z

    move-result v2

    if-nez v2, :cond_0

    :goto_0
    return v0

    :cond_0
    move v0, v1

    goto :goto_0
.end method

.method isAnswering()Z
    .locals 4

    const/4 v1, 0x0

    const/4 v0, 0x1

    iget-object v2, p0, Lcom/hyphenate/chat/EMCallManager$CallStateUnion;->callState:Ljava/util/BitSet;

    invoke-virtual {v2, v1}, Ljava/util/BitSet;->get(I)Z

    move-result v2

    if-nez v2, :cond_0

    iget-object v2, p0, Lcom/hyphenate/chat/EMCallManager$CallStateUnion;->callState:Ljava/util/BitSet;

    invoke-virtual {v2, v0}, Ljava/util/BitSet;->get(I)Z

    move-result v2

    if-ne v2, v0, :cond_0

    iget-object v2, p0, Lcom/hyphenate/chat/EMCallManager$CallStateUnion;->callState:Ljava/util/BitSet;

    const/4 v3, 0x2

    invoke-virtual {v2, v3}, Ljava/util/BitSet;->get(I)Z

    move-result v2

    if-nez v2, :cond_0

    iget-object v2, p0, Lcom/hyphenate/chat/EMCallManager$CallStateUnion;->callState:Ljava/util/BitSet;

    const/4 v3, 0x3

    invoke-virtual {v2, v3}, Ljava/util/BitSet;->get(I)Z

    move-result v2

    if-nez v2, :cond_0

    :goto_0
    return v0

    :cond_0
    move v0, v1

    goto :goto_0
.end method

.method isConnected()Z
    .locals 4

    const/4 v1, 0x0

    const/4 v0, 0x1

    iget-object v2, p0, Lcom/hyphenate/chat/EMCallManager$CallStateUnion;->callState:Ljava/util/BitSet;

    invoke-virtual {v2, v1}, Ljava/util/BitSet;->get(I)Z

    move-result v2

    if-nez v2, :cond_0

    iget-object v2, p0, Lcom/hyphenate/chat/EMCallManager$CallStateUnion;->callState:Ljava/util/BitSet;

    invoke-virtual {v2, v0}, Ljava/util/BitSet;->get(I)Z

    move-result v2

    if-nez v2, :cond_0

    iget-object v2, p0, Lcom/hyphenate/chat/EMCallManager$CallStateUnion;->callState:Ljava/util/BitSet;

    const/4 v3, 0x2

    invoke-virtual {v2, v3}, Ljava/util/BitSet;->get(I)Z

    move-result v2

    if-ne v2, v0, :cond_0

    iget-object v2, p0, Lcom/hyphenate/chat/EMCallManager$CallStateUnion;->callState:Ljava/util/BitSet;

    const/4 v3, 0x3

    invoke-virtual {v2, v3}, Ljava/util/BitSet;->get(I)Z

    move-result v2

    if-nez v2, :cond_0

    :goto_0
    return v0

    :cond_0
    move v0, v1

    goto :goto_0
.end method

.method isConnecting()Z
    .locals 4

    const/4 v1, 0x0

    const/4 v0, 0x1

    iget-object v2, p0, Lcom/hyphenate/chat/EMCallManager$CallStateUnion;->callState:Ljava/util/BitSet;

    invoke-virtual {v2, v1}, Ljava/util/BitSet;->get(I)Z

    move-result v2

    if-ne v2, v0, :cond_0

    iget-object v2, p0, Lcom/hyphenate/chat/EMCallManager$CallStateUnion;->callState:Ljava/util/BitSet;

    invoke-virtual {v2, v0}, Ljava/util/BitSet;->get(I)Z

    move-result v2

    if-ne v2, v0, :cond_0

    iget-object v2, p0, Lcom/hyphenate/chat/EMCallManager$CallStateUnion;->callState:Ljava/util/BitSet;

    const/4 v3, 0x2

    invoke-virtual {v2, v3}, Ljava/util/BitSet;->get(I)Z

    move-result v2

    if-nez v2, :cond_0

    iget-object v2, p0, Lcom/hyphenate/chat/EMCallManager$CallStateUnion;->callState:Ljava/util/BitSet;

    const/4 v3, 0x3

    invoke-virtual {v2, v3}, Ljava/util/BitSet;->get(I)Z

    move-result v2

    if-nez v2, :cond_0

    :goto_0
    return v0

    :cond_0
    move v0, v1

    goto :goto_0
.end method

.method isDisconnected()Z
    .locals 4

    const/4 v1, 0x0

    const/4 v0, 0x1

    iget-object v2, p0, Lcom/hyphenate/chat/EMCallManager$CallStateUnion;->callState:Ljava/util/BitSet;

    invoke-virtual {v2, v1}, Ljava/util/BitSet;->get(I)Z

    move-result v2

    if-nez v2, :cond_0

    iget-object v2, p0, Lcom/hyphenate/chat/EMCallManager$CallStateUnion;->callState:Ljava/util/BitSet;

    invoke-virtual {v2, v0}, Ljava/util/BitSet;->get(I)Z

    move-result v2

    if-ne v2, v0, :cond_0

    iget-object v2, p0, Lcom/hyphenate/chat/EMCallManager$CallStateUnion;->callState:Ljava/util/BitSet;

    const/4 v3, 0x2

    invoke-virtual {v2, v3}, Ljava/util/BitSet;->get(I)Z

    move-result v2

    if-ne v2, v0, :cond_0

    iget-object v2, p0, Lcom/hyphenate/chat/EMCallManager$CallStateUnion;->callState:Ljava/util/BitSet;

    const/4 v3, 0x3

    invoke-virtual {v2, v3}, Ljava/util/BitSet;->get(I)Z

    move-result v2

    if-nez v2, :cond_0

    :goto_0
    return v0

    :cond_0
    move v0, v1

    goto :goto_0
.end method

.method isIdle()Z
    .locals 4

    const/4 v0, 0x1

    const/4 v1, 0x0

    iget-object v2, p0, Lcom/hyphenate/chat/EMCallManager$CallStateUnion;->callState:Ljava/util/BitSet;

    invoke-virtual {v2, v1}, Ljava/util/BitSet;->get(I)Z

    move-result v2

    if-nez v2, :cond_0

    iget-object v2, p0, Lcom/hyphenate/chat/EMCallManager$CallStateUnion;->callState:Ljava/util/BitSet;

    invoke-virtual {v2, v0}, Ljava/util/BitSet;->get(I)Z

    move-result v2

    if-nez v2, :cond_0

    iget-object v2, p0, Lcom/hyphenate/chat/EMCallManager$CallStateUnion;->callState:Ljava/util/BitSet;

    const/4 v3, 0x2

    invoke-virtual {v2, v3}, Ljava/util/BitSet;->get(I)Z

    move-result v2

    if-nez v2, :cond_0

    iget-object v2, p0, Lcom/hyphenate/chat/EMCallManager$CallStateUnion;->callState:Ljava/util/BitSet;

    const/4 v3, 0x3

    invoke-virtual {v2, v3}, Ljava/util/BitSet;->get(I)Z

    move-result v2

    if-nez v2, :cond_0

    :goto_0
    return v0

    :cond_0
    move v0, v1

    goto :goto_0
.end method

.method isRinging()Z
    .locals 4

    const/4 v1, 0x0

    const/4 v0, 0x1

    iget-object v2, p0, Lcom/hyphenate/chat/EMCallManager$CallStateUnion;->callState:Ljava/util/BitSet;

    invoke-virtual {v2, v1}, Ljava/util/BitSet;->get(I)Z

    move-result v2

    if-ne v2, v0, :cond_0

    iget-object v2, p0, Lcom/hyphenate/chat/EMCallManager$CallStateUnion;->callState:Ljava/util/BitSet;

    invoke-virtual {v2, v0}, Ljava/util/BitSet;->get(I)Z

    move-result v2

    if-nez v2, :cond_0

    iget-object v2, p0, Lcom/hyphenate/chat/EMCallManager$CallStateUnion;->callState:Ljava/util/BitSet;

    const/4 v3, 0x2

    invoke-virtual {v2, v3}, Ljava/util/BitSet;->get(I)Z

    move-result v2

    if-nez v2, :cond_0

    iget-object v2, p0, Lcom/hyphenate/chat/EMCallManager$CallStateUnion;->callState:Ljava/util/BitSet;

    const/4 v3, 0x3

    invoke-virtual {v2, v3}, Ljava/util/BitSet;->get(I)Z

    move-result v2

    if-nez v2, :cond_0

    :goto_0
    return v0

    :cond_0
    move v0, v1

    goto :goto_0
.end method

.method isVideoPause()Z
    .locals 2

    iget-object v0, p0, Lcom/hyphenate/chat/EMCallManager$CallStateUnion;->callState:Ljava/util/BitSet;

    const/4 v1, 0x5

    invoke-virtual {v0, v1}, Ljava/util/BitSet;->get(I)Z

    move-result v0

    return v0
.end method

.method isVoicePause()Z
    .locals 2

    iget-object v0, p0, Lcom/hyphenate/chat/EMCallManager$CallStateUnion;->callState:Ljava/util/BitSet;

    const/4 v1, 0x4

    invoke-virtual {v0, v1}, Ljava/util/BitSet;->get(I)Z

    move-result v0

    return v0
.end method

.method reset()V
    .locals 1

    iget-object v0, p0, Lcom/hyphenate/chat/EMCallManager$CallStateUnion;->callState:Ljava/util/BitSet;

    invoke-virtual {v0}, Ljava/util/BitSet;->clear()V

    return-void
.end method
